﻿using System;

namespace Portal.Api.FeedProvider
{
  /// <summary>
  /// Attribute for a class that provides the data for a RSS Feed.
  /// </summary>
  [AttributeUsage(AttributeTargets.Class, Inherited=true, AllowMultiple=true)]
  public sealed class FeedDataProviderAttribute : Attribute
  {
    /// <summary>
    /// Constructor.
    /// </summary>
    /// <param name="identifier">Unique identifier for this class</param>
    public FeedDataProviderAttribute(string identifier, string moduleType)
    {
      Identifier = identifier;
      ModuleType = moduleType;
    }

    /// <summary>
    /// Unique identifier for this class
    /// </summary>
    public string  Identifier { get; set; }

    /// <summary>
    /// The type of the related module.
    /// </summary>
    public string ModuleType { get; set; }
  }
}
